#!/usr/bin/env python
import pygtk, os, sys, gtk, gobject, webbrowser, re, httplib, xml.dom.minidom, time
APP_DIR = os.path.dirname(os.path.abspath(__file__))+'/'

g = {}

class main:
    def __init__(self):        
        sys.path.insert(0, APP_DIR+'modules')
        import gnotifier, PluginManager, gmail, gcal, greader

        pm = PluginManager.pluginManager();    
        
        g['gMail'] = gmail.GMailNotifier(pm)
        g['gCal'] = gcal.GCalendarNotifier(pm)
        #g['gReader'] = greader.GReaderNotifier(pm)

        lManager = gnotifier.loginManager(g)
        lManager.checkUserPass()


        # All PyGTK applications must have a gtk.main(). Control ends here
        # and waits for an event to occur (like a key press or mouse event).
        gtk.main()


main()
